<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>

 <style type="text/css">
th{background:#EFEFEF}
.edit span{background:#efefef;}
.search {margin:5px;}
.search input {color:#444;}
td.img img{cursor:pointer}
</style>
<script language="JavaScript">
<!--
var inputs = document.getElementsByTagName("input");
function submitform() {
	var checked = false;
	for(var i=0; i<inputs.length; i++) {
		if (inputs[i].checked == true) 
        {
            checked = true;
            if(confirm('本操作不可恢复，确认删除？')){
            	break; 
                }else{
                	return false;
                	break; 
                    }
        }
	}
	if (!checked){ 
		alert("致少要选择一项，才能进行操作！");
		return false;
	}
	return true;
}
function checkall(obj) {
	if(obj.checked) {
		for(var i=0; i<inputs.length; i++) {
			if(inputs[i].type=='checkbox') {
				inputs[i].checked = true;
			}
		}
	} else {
		for(var i=0; i<inputs.length; i++) {
			if(inputs[i].type=='checkbox') {
				inputs[i].checked = false;
			}
		}
	}
}

function select_all() {
	for(var i=0; i<inputs.length; i++) {
		if(inputs[i].type=='checkbox') {
			inputs[i].checked = true;
		}
	}
}

function select_last() {
	for(var i=0; i<inputs.length; i++) {
		if(inputs[i].type=='checkbox') {
			if (inputs[i].checked == true){
				inputs[i].checked = false;
			}else if (inputs[i].checked == false){
				inputs[i].checked = true;
			}
		}
	}
}

//-->
</script>
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
            <div class="cont">

	            <div class="cont_title">留言信息列表</div>
	            <hr />
<form action="<?php echo $this->_url('guestbook/userdel/');?>" name="form" method="post" onsubmit="return submitform();">
				<table width="100%" border="0" cellspacing="0">

					<tr class="center" >
						<th width="40"><input type="checkbox" onclick="checkall(this);" /></th>
						<th width="120">公司名称</th>
						<th width="200">留言内容</th>
						<th width="180">查看回复</th>
						<th width="100">添加日期</th>
						<th width="30">操作</th>
					</tr>
					<?php if(!empty($result['data'])) {
						foreach($result['data'] as $v){?>
					<tr class="trcolor">
						<td><input type="checkbox" name="gid[]" value="<?php echo  $v['id'];?>" /></td>
						<td class="name"><a href="<?php echo $this->_url('shop/index/');?><?php echo  $v['shop_id'];?>" target="_blank"><?php echo  $v['shop_name'];?></a></td>
						<td class="name"><?php echo  $v['content'];?></td>
						<td class="name"><?php echo  $v['reply'];?></td>
						<td class="name"><?php echo  $v['add_time'];?></td>
						<td class="name"><a href="<?php echo $this->_url('guestbook/userdel/');?>?id=<?php echo  $v['id'];?>" onclick="return confirm('确定要删除这条留言吗？');">删除</a></td>
					</tr>
					<?php }?>
 					<tr><td colspan="6" style="border-bottom:0"><div class="page"></div></td></tr>
 					<tr><th width="40"><input type="checkbox" onclick="checkall(this);" /></th><th align="left" colspan="6">
                    <input type="button" onclick="select_all()" class="submit" value="全选">
                     <input type="button" class="submit" onclick="select_last()" value="反选">
                     <INPUT class="submit" type="submit" value="批量删除" name="deletesubmit"></th></tr>
					<?php } else {?>
					<tr><td colspan="6" class="center">没有列表信息！</td></tr>
					<?php }?>
                   
				</table>
</form>
			  
			  
            </div>
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

</body>
</html>